home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / dsu.arc / DSU.DOC < prev   
Encoding:
Text File  |  1985-12-04  |  5.6 KB  |  104 lines

  1. DSU - Disk Space Utilization
  2.  
  3. Usage: DSU filespec
  4.      Where the filespec may contain a drive letter.  Paths are not supported -
  5.      DSU operates on the current directory only.  Filenames may include '?' and
  6.      '*' wildcards.
  7.  
  8. Function:
  9.      DSU lists each file that fits the filespec and shows its size in bytes
  10.      and clusters.  The cluster count is shown for each of the common cluster
  11.      sizes as follows:
  12.  
  13.           512  bytes/cluster       single sided diskettes
  14.           1024 bytes/cluster       double sided diskettes
  15.           2048 bytes/cluster       PC-AT hard disk
  16.           4096 bytes/cluster       PC-XT hard disk
  17.  
  18.      After the file list, DSU shows the disk space utilization in percent.  It
  19.      also displays drive statistics for the currently logged drive.  These
  20.      statistics indicate the number of free clusters, sectors, and bytes on the
  21.      disk.
  22.  
  23. Purpose:
  24.      DSU is useful when copying files from one disk to another.  Although DOS
  25.      keeps track of file sizes in bytes, it allocates space on disks in
  26.      allocation units called clusters.  The size of a cluster varies, but is
  27.      usually some multiple of the sector size (512 bytes).
  28.  
  29.      If you copy a one byte file to a double sided floppy and run a DIRectory
  30.      listing, DOS reports a file size of one byte - which is correct.  What DOS
  31.      doesn't tell you is that the file has been allocated a full 1024 byte
  32.      cluster of space on the disk.  Try adding up the file sizes on a full disk
  33.      - you'll see they don't add up to the maximum 360kb.
  34.  
  35.      DSU's cluster count indicates the actual amount of space used by the file.
  36.      The byte count shows the size of the file, but the cluster count shows the
  37.      amount of disk space actually required.  The space utilization figure
  38.      shows what percent of the space is actually used by the file.
  39.  
  40.  
  41. Example:
  42.      After entering DSU *.doc, the program responds:
  43.  
  44.  
  45. Disk Space Utilization (DSU) (C) 1985,       Sheepware Associates
  46.  
  47.                               Number of Clusters Allocated, by Cluster Size
  48.                               ----------------------------------------------
  49. File Name           Size      512 b/c     1024 b/c     2028 b/c     4096 b/c
  50. -------------      -----      -------     --------     --------     --------
  51. APPENDIX.DOC        7424           15            8            4            2
  52. ATREQ.DOC           2560            6            3            2            1
  53. CB0301.DOC          1152            3            2            1            1
  54. CS0208.DOC          1280            3            2            1            1
  55. CSOURCE.DOC         2304            5            3            2            1
  56. CSOURCE2.DOC        1536            4            2            1            1
  57. EEODATA.DOC         3328            7            4            2            1
  58. ENTIN.DOC           3584            8            4            2            1
  59. FOCID.DOC           1024            3            2            1            1
  60. HM0121.DOC          1280            3            2            1            1
  61. HM0318.DOC           512            2            1            1            1
  62. HM0411.DOC          3328            7            4            2            1
  63. IBBSSYS.DOC        46080           91           46           23           12
  64. IBBSUSER.DOC       14336           29           15            8            4
  65. INTLABS.DOC        12288           25           13            7            4
  66. JC0206.DOC          1024            3            2            1            1
  67. JH0306.DOC          1664            4            2            1            1
  68. JOBVSPOS.DOC        3584            8            4            2            1
  69. MD0122.DOC          1024            3            2            1            1
  70. OVERVIEW.DOC        1664            4            2            1            1
  71. PCWORLD.DOC          896            2            1            1            1
  72. REG-SLS.DOC         3712            8            4            2            1
  73. REQDFLDS.DOC        1792            4            2            1            1
  74. TABSTRUC.DOC        2688            6            3            2            1
  75. TAXDATA.DOC         1280            3            2            1            1
  76. UTILS.DOC           6528           13            7            4            2
  77. WORKBOOK.DOC        3840            8            4            2            1
  78. HM0415.DOC          1152            3            2            1            1
  79. HM0416.DOC           768            2            1            1            1
  80.  
  81. ** 29  files      133632          282          149           79           48
  82. ** space usage (%)               92.6         87.6         82.6         68.0
  83.  
  84.  
  85. Statistics for current drive -------------------------------------
  86.      1789952  Bytes free                21309440 Bytes total
  87.      3496     Sectors free              41620    Sectors total
  88.      874      Clusters free             10405    Clusters total
  89.  
  90.      4 Sectors/cluster at 512 Bytes/sector giving 2048 Bytes/cluster
  91.  
  92.  --------
  93.      The above indicates there are 29 files ending with a DOC extension, they
  94.      use 133632 bytes, and (on my PC-AT disk) they require 79 clusters.  Of the
  95.      79 clusters allocated, 82.6% of the space is used by the files, with the
  96.      rest unused filler.
  97.  
  98.      If I wanted to back up these files on a double sided floppy, they would
  99.      require 149 clusters.  To see if that much space was available, I would
  100.      change to a floppy as my currently logged drive and run DSU again.  The
  101.      statistics report at the bottom would tell me how many clusters were
  102.      available.
  103.  
  104.